<template>
	<view class="dataBox">
		<view class="dataContnt">
			<view class="dataTitle">
				<image src="../../static/dataBox-image/dataICO.png" mode=""></image>
				<text>数据情况</text>
			</view>
			<view class="data">
				<view class="content" >
					<view class="numberBox" v-for="(item,index) in dataShow" :key="index">
						<view class="numberTitle">
							<text>{{item.title}}</text>
						</view>
						<view class="numberContent">
							<text>{{item.number}}</text>
							<text>人</text>
						</view>
						<view class="numberlower">
							<text>较昨日</text>
							<image src="../../static/dataBox-image/lower.png" mode=""></image>
							<text>{{item.rate}}</text>
						</view>
						
					</view>

				</view>
				
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			};
		},
		computed:{
			dataShow(){
				return this.$store.state.order.dataShow
			}
		},
		onLoad() {
			
		}
	}
</script>

<style lang="scss" scoped>
	.dataBox{
		width: 100%;
		margin: 280rpx 0;
		height: 400rpx;
		background-color: #fff;
		border-radius: 16rpx;
		display: flex;
		align-items: center;
		.dataContnt{
			width: 90%;
			height: 90%;
			margin: 5%;
			.dataTitle{
				display: flex;
				align-items: center;
				
				image{
					width: 40rpx;
					height: 40rpx;
				}
				text{
					padding-left: 20rpx;
					font-size: 35rpx;
					color: #333;
				}
			}
			.data{
				.content{
					display: flex;
					flex-wrap: wrap;
					
					.numberBox{
						margin-top: 40rpx;
						.numberTitle{
							color: #333;
							font-size: 22rpx;
						}
						.numberContent{
							margin: 10rpx 0;
							text:nth-child(2){
								font-size: 30rpx;
							}
						}
						width: 50%;
						.numberlower{
							font-size: 20rpx;
							text:nth-child(1){
								color: #bfbfbf;
								
							}
							image{
								margin: 0 10rpx;
								width: 10rpx;
								height: 12rpx;
								
							}
						}
					}
				}
			}
		}
	}
</style>
